﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class SortThreeValues
{
    static void Main(string[] args)
    {
        Console.WriteLine("Enter A:");
        int a = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter B:");
        int b = Convert.ToInt32(Console.ReadLine());
        Console.WriteLine("Enter C:");
        int c = Convert.ToInt32(Console.ReadLine());
        int one = a;
        int two = b;
        int three = c;
        if ((a > b) && (a > c))
        {
            one = a;
            if (c > b)
            {
                two = c;
                three = b;
            }
        }
        else if ((b > a) && (b > c)) 
        {
            one = b;
            if (c  > a) 
            {
                two = c;
                three = a;
            } 
            else 
            {
                two = a;
                three = c;
            }
        }
        else if ((c > a) && (c > b)) 
        {
            one = c;
            if (b > a)
            {
                two = b;
                three = a;
            }
            else 
            {
                two = a;
                three = b;
            }
        }
        Console.WriteLine("{0},{1},{2}", one, two, three);
    }
}

